﻿@{
    Layout = null;
    var IndexAdModel = new Ec_System.Facade.Web.AdRecommendFacade().Index_Home_Index;
    var adPicUrl = new Ec_System.Facade.Web.SiteConfigFacade().AdCommendPicURL;
    var imageServer = new  Ec_System.Facade.Web.SiteConfigFacade().ImageServer;
}
@model Ec_System.Models.Web.IndexRecommendData

<div class="block clearfix" style="overflow:hidden; position:relative">
    <!--轮播图广告开始-->
    <div class="index_l">
        <div style=" padding-left:210px">
            <div id="slideBox" class="slideBox">
                <div class="hd">
                    <ul>
                        @for (int i = 0; i < IndexAdModel.Count; i++)
                        {
                            <li>@(i + 1)</li>
                        }
                    </ul>
                </div>
                <div class="bd">
                    <ul>
                        @foreach (var item in IndexAdModel)
                        {
                            if (string.IsNullOrWhiteSpace(item.Url))
                            {
                                <li><img src="@adPicUrl@item.AdPicName" /></li>
                            }
                            else
                            {
                                <li><a href="#" target="_blank"><img src="@adPicUrl/@item.AdPicName" /></a></li>
                            }
                        }

                    </ul>
                </div>
            </div>

            <script type="text/javascript">
                jQuery(".slideBox").slide({ mainCell: ".bd ul", autoPlay: true });
            </script>
            <div class="blank"></div>
        </div>
    </div>
    <!--轮播图广告结束-->

    <!--右侧的限时抢购&明星店铺开始-->
    <div class="index_r">
        <div style=" position:relative">
            <div class="scrollDiv" id="s3" style="height:90px;">
                <div class="QR">
                    <span>二维码查询</span>
                </div>
                <form action="/QrCode/Index" method="post">
                    <input name="qrCode" class="TextQR" value="请输入要查询的二维码" onblur="if(this.value==''){this.value='请输入要查询的二维码'}" onfocus="this.value=''" />
                    <a href="/QRInfo/QRPolicy">溯源政策解读</a>&nbsp;&nbsp;
                    <a href="/QRInfo/QRIntro">溯源查询说明</a>
                    <input type="submit" name="submit" value="溯源查询" class="bnt_QR">
                </form>

            </div>
        </div>


        <div class="blank"></div>
        <script type="text/javascript">

        // 这里开始是鼠标移上去弹出图片效果
        var old = new Array();
        var buyercmt;
        function show_goodspic(id, type) {
            if (old[type] != null)
            {
                if(document.getElementById(type + "b" + old[type]) != null)
                {
                    document.getElementById(type + "b" + old[type]).style.display = 'none';
                }
                if(document.getElementById(type + "s" + old[type]) != null)
                {
                    document.getElementById(type + "s" + old[type]).style.display = 'block';
                }
            }
            if(document.getElementById(type + "s" + id) != null)
            {
                document.getElementById(type + "s" + id).style.display = 'none';
            }
            if(document.getElementById(type + "b" + id) !=null)
            {
                document.getElementById(type + "b" + id).style.display = 'block';
                old[type] = id;
            }
        }
        </script>

        <div class="index_top box_1">
            <div id="slideTxtBox1">
                <div class="hd">
                    <span><a href="/Search/PromotionSchedule">限时抢购</a></span>
                </div>
                <div class="bd">
                    <ul>
                        <dl style="display: list-item; ">
                            @for (int i = 1; i < Model.ScheduleList.Count + 1; i++)
                            {
                                <ul class="clearfix ul_list" id=hot1s@{@i} onmouseover="show_goodspic(@i,'hot1')">
                                    <span>@i</span>
                                    <p class="name">
                                        <a href="/item/@Model.ScheduleList[i-1].ProductId" title="">@Model.ScheduleList[i - 1].ShopProductTitle ...</a>
                                    </p>
                                    <div class="ren">评论(@Model.ScheduleList[i - 1].EvaluationCount)</div>
                                </ul>
                                <ul class="clearfix ul_box" id=hot1b@{@i} style="DISPLAY: none">
                                    <span>@i</span>
                                    <li class="img">
                                        <a href="/item/@Model.ScheduleList[i-1].ProductId"><img src="@imageServer/product/6060@{@Model.ScheduleList[i - 1].ImageUrl}" /></a>
                                    </li>
                                    <li>
                                        <a href="/item/@Model.ScheduleList[i-1].ProductId" title="@Model.ScheduleList[i - 1].ShopProductTitle">@Model.ScheduleList[i - 1].ShopProductTitle ...</a><br />
                                        <font class="f1">￥@Model.ScheduleList[i - 1].PromotionUnitPrice 元</font>
                                        <div class="ren">评论(@Model.ScheduleList[i - 1].EvaluationCount)</div>
                                    </li>
                                </ul>
    }
                        </dl>
                    </ul>
                    <script type=text/javascript>onload = function () { show_goodspic(1, 'hot1') };</script>
                </div>
            </div>
            <script type="text/javascript">
                jQuery("#slideTxtBox1").slide();
            </script>
            <div id="slideTxtBox2">
                <div class="hd">
                    <span><a href="/Shop/ShopList">明星店铺</a></span>
                </div>
                <div class="bd">
                    <ul>
                        <dl style="display: list-item; ">
                            @for (int i = 1; i < Model.ShopList.Count + 1; i++)
                            {
                                <ul class="clearfix ul_list" id=hot3s@{@i}>
                                    <span>@i</span>
                                    <p class="name">
                                        <a href="/Shop/@Model.ShopList[i-1].ShopURL" title="">@Model.ShopList[i - 1].ShopName</a>
                                    </p>
                                    <div class="ren">关注指数：@Model.ShopList[i - 1].CostValue</div>
                                </ul>
    }
                        </dl>
                    </ul>
                </div>
            </div>

        </div>
    </div>
    <!--右侧的限时抢购&明星店铺结束-->

    <!---1F开始-->
    <div class="slideGroup">
        <div class="parHd">
            <ul>
                <li><a href="/Search/Floor?typeKey=Index-1-1">1F 最新推荐</a></li>
                <li><a href="/Search/Floor?typeKey=Index-1-2">1F 时令水果</a></li>
                <li><a href="/Search/Floor?typeKey=Index-1-3">1F 时令蔬菜</a></li>
            </ul>
        </div>
        <div class="parBd">
            <div class="slideBox5" onmouseover="this.className='slideBox5 slideBox_on'" onmouseout="this.className='slideBox5'">
                <ul>
                    @foreach (var item in Model.F11)
                    {
                        <li class="goodsItem_kuang goodsItem_kuang2">
                            <div class="goodsItem" onmouseover="this.className='goodsItem goodsItem_on'" onmouseout="this.className='goodsItem'">

                                <a href="/Item/@item.ProductID" target="_blank"><img src="@imageServer/product/220220/@item.ImageUrl" class="goodsimg" /></a><br />
                                <p><a href="/Item/@item.ProductID" target="_blank">@item.ShopProductTitle<span></span></a></p>
                                <p class="lujin">原价：<del>&#165;@item.MarketPrice.ToString("C")</del></p>
                                <div class="clearfix">
                                    <font class="f1">
                                        优惠价：&#165;@item.ShopPrice.ToString("C")
                                    </font>
                                    <a target="_blank" href="/Item/@item.ProductID" class="pinlun">评论(@item.EvaluationCount)</a>
                                </div>
                            </div>
                        </li>
                    }
                </ul>
            </div>
            <div class="slideBox5" onmouseover="this.className='slideBox5 slideBox_on'" onmouseout="this.className='slideBox5'">

                <ul>
                    @foreach (var item in Model.F12)
                    {

                        <li class="goodsItem_kuang goodsItem_kuang2">
                            <div class="goodsItem" onmouseover="this.className='goodsItem goodsItem_on'" onmouseout="this.className='goodsItem'">
                                <a href="/Item/@item.ProductID" target="_blank"><img src="@imageServer/product/220220/@item.ImageUrl" class="goodsimg" /></a><br />
                                <p><a href="/Item/@item.ProductID" target="_blank">@item.ShopProductTitle<span></span></a></p>
                                <p class="lujin">原价：<del>&#165;@item.MarketPrice.ToString("C")</del></p>
                                <div class="clearfix">
                                    <font class="f1">
                                        优惠价：&#165;@item.ShopPrice.ToString("C")
                                    </font>
                                    <a target="_blank" href="/Item/@item.ProductID" class="pinlun">评论(@item.EvaluationCount)</a>
                                </div>
                            </div>
                        </li>
                    }
                </ul>
            </div>
            <div class="slideBox5" onmouseover="this.className='slideBox5 slideBox_on'" onmouseout="this.className='slideBox5'">

                <ul>
                    @foreach (var item in Model.F13)
                    {
                        <li class="goodsItem_kuang goodsItem_kuang2">
                            <div class="goodsItem" onmouseover="this.className='goodsItem goodsItem_on'" onmouseout="this.className='goodsItem'">
                                <a href="/Item/@item.ProductID" target="_blank"><img src="@imageServer/product/220220/@item.ImageUrl" class="goodsimg" /></a><br />
                                <p><a href="/Item/@item.ProductID" target="_blank">@item.ShopProductTitle<span></span></a></p>
                                <p class="lujin">原价：<del>&#165;@item.MarketPrice.ToString("C")</del></p>
                                <div class="clearfix">
                                    <font class="f1">
                                        优惠价：&#165;@item.ShopPrice.ToString("C")
                                    </font>
                                    <a target="_blank" href="/Item/@item.ProductID" class="pinlun">评论(@item.EvaluationCount)</a>
                                </div>
                            </div>
                        </li>
                    }
                </ul>
            </div>
        </div>
    </div>
    <script type="text/javascript">
    jQuery(".slideGroup .slideBox5").slide({ mainCell: "ul", vis: 4, prevCell: ".sPrev", nextCell: ".sNext", effect: "leftLoop" });
    jQuery(".slideGroup").slide({ titCell: ".parHd li", mainCell: ".parBd" });
    </script>
    <!---1F结束-->

    <div class="blank"></div>
    <div class="tit3">
        <span>
            <a href="/Search/Floor?typeKey=Index-2-0">2F 最新水果推荐 </a>
        </span>
        <a href="/Search/Floor?typeKey=Index-2-0" class="more">更多...</a>
    </div>
    <div class="blank"></div>
    <!--2F开始-->
    <div class="cat_box">
        @foreach (var item in Model.F2)
        {
            <div class="goodsItem_kuang goodsItem_kuang2" style="margin-left:0;">
                <div class="goodsItem" onmouseover="this.className='goodsItem goodsItem_on'" onmouseout="this.className='goodsItem'">
                    <a href="/Item/@item.ProductID" target="_blank"><img src="@imageServer/product/220220/@item.ImageUrl" class="goodsimg" /></a><br />
                    <p><a href="/Item/@item.ProductID" target="_blank">@item.ShopProductTitle</a></p>
                    <p class="lujin">原价：<del>&#165;@item.MarketPrice.ToString("C")</del></p>
                    <div class="clearfix">
                        <font class="f1">
                            优惠价：&#165;@item.ShopPrice.ToString("C")
                        </font>
                        <a target="_blank" href="/Item/@item.ProductID" class="pinlun">评论(@item.EvaluationCount)</a>
                    </div>
                </div>
            </div>
        }
    </div>
    <!--2F结束-->


    <div class="blank"></div>
    <div class="tit3">
        <span>
            <a href="/Search/Floor?typeKey=Index-3-0">3F 最新蔬菜推荐 </a>
        </span>
        <a href="/Search/Floor?typeKey=Index-3-0" class="more">更多...</a>
    </div>
    <div class="blank"></div>
    <!--3F开始-->
    <div class="cat_box">
        @foreach (var item in Model.F3)
        {
            <div class="goodsItem_kuang goodsItem_kuang2" style="margin-left:0;">
                <div class="goodsItem" onmouseover="this.className='goodsItem goodsItem_on'" onmouseout="this.className='goodsItem'">
                    <a href="/Item/@item.ProductID" target="_blank"><img src="@imageServer/product/220220/@item.ImageUrl" class="goodsimg" /></a><br />
                    <p><a href="/Item/@item.ProductID" target="_blank">@item.ShopProductTitle</a></p>
                    <p class="lujin">原价：<del>&#165;@item.MarketPrice.ToString("C")</del></p>
                    <div class="clearfix">
                        <font class="f1">
                            优惠价：&#165;@item.ShopPrice.ToString("C")
                        </font>
                        <a target="_blank" href="/Item/@item.ProductID" class="pinlun">评论(@item.EvaluationCount)</a>
                    </div>
                </div>
            </div>
        }
    </div>
    <!--3F结束-->


    <div class="blank"></div>
    <div class="tit3">
        <span>
            <a href="/Search/Floor?typeKey=Index-4-0">4F 热卖商品 </a>
        </span>
        <a href="/Search/Floor?typeKey=Index-4-0" class="more">更多...</a>
    </div>
    <div class="blank"></div>
    <!--4F开始-->
    <div class="cat_box">
        @foreach (var item in Model.F4)
        {
            <div class="goodsItem_kuang goodsItem_kuang2" style="margin-left:0;">
                <div class="goodsItem" onmouseover="this.className='goodsItem goodsItem_on'" onmouseout="this.className='goodsItem'">
                    <a href="/Item/@item.ProductID" target="_blank"><img src="@imageServer/product/220220/@item.ImageUrl" class="goodsimg" /></a><br />
                    <p><a href="/Item/@item.ProductID" target="_blank">@item.ShopProductTitle</a></p>
                    <p class="lujin">原价：<del>&#165;@item.MarketPrice.ToString("C")</del></p>
                    <div class="clearfix">
                        <font class="f1">
                            优惠价：&#165;@item.ShopPrice.ToString("C")
                        </font>
                        <a target="_blank" href="/Item/@item.ProductID" class="pinlun">评论(@item.EvaluationCount)</a>
                    </div>
                </div>
            </div>
        }
    </div>
    <!--4F结束-->

    <div class="blank"></div>
    <div class="tit3">
        <span>
            <a href="/Search/Floor?typeKey=Index-5-0">5F 好评商品 </a>
        </span>
        <a href="/Search/Floor?typeKey=Index-5-0" class="more">更多...</a>
    </div>
    <div class="blank"></div>
    <!--5F开始-->
    <div class="cat_box">
        @foreach (var item in Model.F5)
        {
            <div class="goodsItem_kuang goodsItem_kuang2" style="margin-left:0;">
                <div class="goodsItem" onmouseover="this.className='goodsItem goodsItem_on'" onmouseout="this.className='goodsItem'">
                    <a href="/Item/@item.ProductID" target="_blank"><img src="@imageServer/product/220220/@item.ImageUrl" class="goodsimg" /></a><br />
                    <p><a href="/Item/@item.ProductID" target="_blank">@item.ShopProductTitle</a></p>
                    <p class="lujin">原价：<del>&#165;@item.MarketPrice.ToString("C")</del></p>
                    <div class="clearfix">
                        <font class="f1">
                            优惠价：&#165;@item.ShopPrice.ToString("C")
                        </font>
                        <a target="_blank" href="/Item/@item.ProductID" class="pinlun">评论(@item.EvaluationCount)</a>
                    </div>
                </div>
            </div>
        }
    </div>
    <!--5F结束-->


    <div class="blank"></div>
    <div class="tit3">
        <span>
            <a href="/Search/Floor?typeKey=Index-6-0">6F 销量最高商品 </a>
        </span>
        <a href="/Search/Floor?typeKey=Index-6-0" class="more">更多...</a>
    </div>
    <div class="blank"></div>
    <!--6F开始-->
    <div class="cat_box">
        @foreach (var item in Model.F3)
        {
            <div class="goodsItem_kuang goodsItem_kuang2" style="margin-left:0;">
                <div class="goodsItem" onmouseover="this.className='goodsItem goodsItem_on'" onmouseout="this.className='goodsItem'">
                    <a href="/Item/@item.ProductID" target="_blank"><img src="@imageServer/product/220220/@item.ImageUrl" class="goodsimg" /></a><br />
                    <p><a href="/Item/@item.ProductID" target="_blank">@item.ShopProductTitle</a></p>
                    <p class="lujin">原价：<del>&#165;@item.MarketPrice.ToString("C")</del></p>
                    <div class="clearfix">
                        <font class="f1">
                            优惠价：&#165;@item.ShopPrice.ToString("C")
                        </font>
                        <a target="_blank" href="/Item/@item.ProductID" class="pinlun">评论(@item.EvaluationCount)</a>
                    </div>
                </div>
            </div>
        }
    </div>
    <!--6F结束-->
    <div class="blank"></div>
 </div>
